package com.focus.xyz.union.pages.backend;

import com.focus.xyz.core.common.keyword.Action;
import com.focus.xyz.core.pages.BasePage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

/**
 * Created by chenmeng on 2016/4/14.
 */
public class UnionMainPage extends BasePage {
    private Action action;

    @FindBy(xpath = "//a[contains(text(),'[退出]')]")
    private WebElement logoutLink;

    public UnionMainPage(WebDriver driver, Action action){
        super(driver,action);
        PageFactory.initElements(driver,this);
    }

    public void linkLogout() throws Exception{
        action.click(logoutLink);
    }
}
